package com.ly.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ly.pojo.domain.CooperationApplicationDO;

/**
 * CooperationApplicationMapper
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
public interface CooperationApplicationMapper {

    /**
     * 根据公司名称和联系人查询加盟申请信息
     *
     * @Param companyName
     * @Param contactPerson
     * @Return CooperationApplicationDO
     */
    CooperationApplicationDO selectByCompanyNameAndContactPerson(String companyName, String contactPerson);

    /**
     * 插入加盟申请信息
     *
     * @Param cooperationApplicationDO
     * @Return int
     */
    int insert(CooperationApplicationDO cooperationApplicationDO);

    /**
     * 根据ID查询加盟申请信息
     *
     * @Param applicationId
     * @Return CooperationApplicationDO
     */
    CooperationApplicationDO selectById(Integer applicationId);

    /**
     * 根据ID更新加盟申请信息
     *
     * @Param cooperationApplicationDO
     * @Return int
     */
    int updateById(CooperationApplicationDO cooperationApplicationDO);

    /**
     * 统计所有加盟申请信息
     *
     * @Return int
     */
    int countApplications();

    /**
     * 分页查询加盟申请信息
     *
     * @Param pageIndex
     * @Param pageSize
     * @Return List<CooperationApplicationDO>
     */
    List<CooperationApplicationDO> selectApplicationsByPage(Integer pageIndex, Integer pageSize);
}
